<template>
  <div class="myContainer">
    <el-row class="myBorderBottom">
      <el-col :span="3" class="myTitleText myLineHeight_40px">能耗管理</el-col>
      <el-col :span="21" class="myTextAlignRight">
        <el-button type="primary" class="myBgGreen">导出</el-button>
      </el-col>
    </el-row>
    <!-- 搜索部分 start -->
    <el-row :gutter="10" class="myPaddingTop_10px">
      <el-col :span="4">
        <el-date-picker
          v-model="value"
          type="date"
          placeholder="选择日期">
        </el-date-picker>
      </el-col>
      <el-col :span="4">
        <el-button type="primary" class="myBgGreen">查询</el-button>
      </el-col>
    </el-row>
    <!-- 搜索部分 end -->
    <el-row class="mymarginTop_10px">
      <el-col :span="24">
        <template>
          <el-table
            border
            :data="tableData"
            @selection-change="handleSelectionChange"
            style="width: 100%">
            <el-table-column
              type="selection"
              width="55">
            </el-table-column>
            <el-table-column
              label="序号"
              type="index"
              width="100">
            </el-table-column>
            <el-table-column
              label="时间"
              prop="name">
            </el-table-column>
            <el-table-column
              label="当日用量"
              prop="name">
            </el-table-column>
            <el-table-column
              label="七日平均量"
              prop="name">
            </el-table-column>
            <el-table-column
              label="当日增幅"
              prop="name">
            </el-table-column>
          </el-table>
        </template>
      </el-col>
    </el-row>
    <!-- 分页控件 start -->
    <div class="block">                    
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page_num"
        :page-sizes="[10, 15]"
        :page-size="page_size"
        layout="total, sizes, prev, pager, next, jumper"
        :total="total">
      </el-pagination>
    </div>
    <!-- 分页控件 end -->
  </div>
</template>  

<style scoped>
  .myContainer{
    background: #fff;
    padding: 10px;
  }
  .myHeadeTitle{
    color: #000;
    font-weight: 500;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dbdbdb;
    margin-bottom:10px; 
  }
  .myHeadeTitle:before,.myHeadeTitle:after{
    content: " ";
    display: block;
    clear: both;
  }
  .myBgGreen{
    background: #00c2a9;
    border-color: #00c2a9;
    color: #fff;
    margin-top: 2px;
  }
  .myLineHeight_35px{
    line-height: 35px;
  }
  .myTextAlignRight{
    text-align: right;
  }
  .myBgGreen:hover{
    background: #33ceba;
  }
  .myPaddingTop_10px{
    padding-top: 10px;
  }  
  .myLeftMsg{
    line-height: 40px;
    text-align: right;
    padding-right: 10px;
  }
  .myPaddingBottom_10px{
    padding-bottom: 10px;
  }
  .myVA_M{
    vertical-align: middle;
  }
  .myPadding_20px{
    padding: 20px;
  }    
  .myTitleText{
    font-weight: 500;
    font-size: 16px;
  }
  .myLineHeight_40px{
    line-height: 40px;
  }
  .myBorderBottom{
    border-bottom:1px solid #dbdbdb;
  }
  .mymarginTop_10px{
    padding-top: 10px;
  }
</style>

<script>
  
  export default {
     data(){
      return{
        housValue:"",
        housOptions:[],
        value1:"",
        kw:"",
        tableData:[],
        page_num:1,
        page_size:10,
        total:null,
        value:""
      }
    },
    components: {
      
    },
    mounted(){
      document.title = '能耗记录';
      
     
    },
    methods:{
      handleSelectionChange(val) {
        
      },
      handleSizeChange(val) {//每页条数控制
        this.page_size = val;
      },
      handleCurrentChange(val) {//每页
        this.page_num = val;
      }
    }

  }

</script>  



